﻿using System;
using System.Diagnostics;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Text;
using System.Net.Sockets;
using System.IO;
using System.Net;
using System.Threading;
using MySql.Data.MySqlClient;
using System.Configuration;
using System.ComponentModel;
using System.Data.SqlClient;

namespace WordsMatching
{
    class Program
    {
        static void Main(string[] args)
        {
            Wnlib.WNCommon.path = "C:\\Program Files\\WordNet\\2.1\\dict\\";
            System.Console.WriteLine("Initializing..............");
            int db_choice = 0;

            Scripts script = new Scripts();
            script.Build_trigger_script_Data_file();
            script.Build_Response_Script_Data_file();
            script.Build_Trigger_Search_Data();
            script.Build_Response_Search_Data();




            string[] sentence = new string[100];
            StreamReader S;
            int sentence_limit = 0;
            S = File.OpenText("c://scripts/model/negative.txt");
            sentence[sentence_limit] = S.ReadLine();

            while (sentence[sentence_limit] != null)
            {

                sentence_limit = sentence_limit + 1;
                sentence[sentence_limit] = S.ReadLine();

            }

            S.Close();//close the file



            for (int k = 0; k < sentence_limit; k++)
            {

                script.Get_Target_String_Data(sentence[k]);
                script.Get_Score_Response();
                script.Get_Score_Trigger();

            }

        }
    }
}
